package org.insia.smartposse.metier;

import java.io.Serializable;

import org.insia.smartposse.metier.webservice.LightCategoryTheme;

/**
 * Business class for a project's theme
 * @author sok hout
 *
 */
public class CategoryTheme 
implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3138012862643944674L;
	private long _id = -1L;
	private Category _category;
	private String _label;
	
	/**
	 * Empty constructor.
	 *
	 */
	public CategoryTheme() {
	}

	/**
	 * Getter for the theme's category.
	 * @return thre category.
	 */
	public Category getCategory() {
		return _category;
	}

	/**
	 * Setter for the theme's category.
	 * @param category the category to set.
	 */
	public void setCategory(Category category) {
		this._category = category;
	}

	/**
	 * Getter for the id.
	 * @return the id.
	 */
	public long getId() {
		return _id;
	}

	/**
	 * Setter for the id.
	 * @param id the id to set.
	 */
	public void setId(long id) {
		this._id = id;
	}

	/**
	 * Getter for the label.
	 * @return the label.
	 */
	public String getLabel() {
		return _label;
	}

	/**
	 * Setter for the label.
	 * @param label the label to set.
	 */
	public void setLabel(String label) {
		this._label = label;
	}
	
	/**
	 * 
	 * @return lcatet the webservice CategoryTheme representation
	 */
	public LightCategoryTheme setLight() {
		LightCategoryTheme lcatet = new LightCategoryTheme(this);
		return lcatet;
	}
}
